package cn.edu.xmu.wnw.dao;

import java.util.List;

import org.springframework.context.ApplicationContext;

import cn.edu.xmu.wnw.pojo.Category;

public interface CategoryDAO {

	public void initDao();

	public void save(Category transientInstance);

	public void delete(Category persistentInstance);

	public Category findById(java.lang.Integer id);

	public List findByExample(Category instance);

	public List findByProperty(String propertyName, Object value);

	public List findByName(Object name);

	public List findByState(Object state);

	public List findByDescription(Object description);

	public List findAll();

	public Category merge(Category detachedInstance);

	public void attachDirty(Category instance);

	public void attachClean(Category instance);

	public CategoryDAO getFromApplicationContext(ApplicationContext ctx);
}